package com.ruoyi.web.controller.mall.shopClass.service.impl;

import com.ruoyi.web.controller.mall.shopClass.domain.ShopClass;
import com.ruoyi.web.controller.mall.shopClass.mapper.ShopClassMapper;
import com.ruoyi.web.controller.mall.shopClass.service.IShopClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 店铺分类Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-01-18
 */
@Service
public class ShopClassServiceImpl implements IShopClassService 
{
    @Autowired
    private ShopClassMapper shopClassMapper;

    /**
     * 查询店铺分类
     * 
     * @param id 店铺分类ID
     * @return 店铺分类
     */
    @Override
    public ShopClass selectShopClassById(String id)
    {
        return shopClassMapper.selectShopClassById(id);
    }

    /**
     * 查询店铺分类列表
     * 
     * @param shopClass 店铺分类
     * @return 店铺分类
     */
    @Override
    public List<ShopClass> selectShopClassList(ShopClass shopClass)
    {
        return shopClassMapper.selectShopClassList(shopClass);
    }

    /**
     * 新增店铺分类
     * 
     * @param shopClass 店铺分类
     * @return 结果
     */
    @Override
    public int insertShopClass(ShopClass shopClass)
    {
        return shopClassMapper.insertShopClass(shopClass);
    }

    /**
     * 修改店铺分类
     * 
     * @param shopClass 店铺分类
     * @return 结果
     */
    @Override
    public int updateShopClass(ShopClass shopClass)
    {
        return shopClassMapper.updateShopClass(shopClass);
    }

    /**
     * 删除店铺分类对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteShopClassByIds(String[] ids)
    {
        return shopClassMapper.deleteShopClassByIds(ids);
    }

    /**
     * 删除店铺分类信息
     * 
     * @param id 店铺分类ID
     * @return 结果
     */
    @Override
    public int deleteShopClassById(String id)
    {
        return shopClassMapper.deleteShopClassById(id);
    }
}
